<html>
<#include  "../common/header.ftl">
<body>
<div id="wrapper" class="toggled">

    <!--边栏 -->
<#include  "../common/nav.ftl">

    <!-- 主体内容-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <table class="table table-bordered table-condensed">
                        <thead>
                        <tr>
                            <th>信息编号</th>
                            <th>信息类型</th>
                            <th>信息描述</th>
                            <th>信息图片</th>
                            <th>状态</th>
                            <th>申请者</th>
                            <th>更新人</th>
                            <th>创建时间</th>
                            <th>跟新时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list convenientInfoPage.content as convenientInfo>
                        <tr>
                            <td>${convenientInfo.convenientId}</td>
                            <td>${convenientInfo.convenientType}</td>
                            <td>${convenientInfo.convenientDescrition}</td>
                            <td>${convenientInfo.convenientIcon!''}</td>
                            <td>${convenientInfo.getConvenientInfoEnum().message}</td>
                            <td>${convenientInfo.creator}</td>
                            <td>${convenientInfo.updator!''}</td>
                            <td>${convenientInfo.createTime}</td>
                            <td>${convenientInfo.updateTime!''}</td>

                            <td>
                                <#if convenientInfo.getConvenientInfoEnum().message=="待审核">
                                <a href="/fanZone/seller/convenientInfo/check?convenientId=${convenientInfo.convenientId}">审核</a>
                                <#elseif convenientInfo.getConvenientInfoEnum().message=="生效">
                                    <a href="/fanZone/seller/convenientInfo/close?convenientId=${convenientInfo.convenientId}">下线</a>
                                    <#else >
                                    <span>已失效</span>
                                </#if>
                            </td>

                        </tr>
                        </#list>

                        </tbody>
                    </table>
                </div>
                <div class="col-md-12 column">
                    <ul class="pagination pull-right">
                    <#if currentPage lte 1>
                        <li class="disabled"><a href="#">上一页</a></li>
                    <#else>
                        <li ><a href="/fanZone/seller/convenientInfo/list?page=${currentPage-1}&size=${size}">上一页</a></li>
                    </#if>

                    <#list 1..convenientInfoPage.getTotalPages() as index>
                        <#if currentPage==index>
                            <li class="disabled"><a href="#">${index}</a></li>
                        <#else >
                            <li><a href="/fanZone/seller/convenientInfo/list?page=${index}&size=${size}">${index}</a></li>

                        </#if>
                    </#list>
                    <#if currentPage gte convenientInfoPage.getTotalPages()>
                        <li class="disabled"><a href="#">下一页</a></li>
                    <#else>
                        <li ><a href="/fanZone/seller/convenientInfo/list?page=${currentPage+1}&size=${size}">下一页</a></li>
                    </#if>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
